package com.binance.autojob.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

import com.binance.autojob.utils.JobClassInteruptor;
import com.binance.autojob.utils.JobMethodAnnotionPostProcessor;


@Configuration
public class ExtJobConfig {

    @Bean
    public JobClassInteruptor createJobClassInteruptor() {
        System.out.println("-----------------------------》createJobClassInteruptor");
        return new JobClassInteruptor();
    }

    @Bean
    @Order(Ordered.HIGHEST_PRECEDENCE)
    public JobMethodAnnotionPostProcessor createJobMethodAnnotionPostProcessor() {
        System.out.println("-----------------------------》createJobMethodAnnotionPostProcessor");
        return new JobMethodAnnotionPostProcessor();
    }
}
